 function selectALL(){
		  //查询
		  var type3=$("#type3").val();//起始时间
		  var type4=$("#type4").val();//结束时间
		  var start = new Date(type3.replace("-", "/").replace("-", "/"));
		  var end = new Date(type4.replace("-", "/").replace("-", "/"));
		  if(start>end){
			  layer.alert("起始时间不能大于结束时间");
			  return;
		  }else{
			  var type5=$("#type5").val();
			  if(type5==12521){
				 type5=null;
			  }
			  var type6=$("#type6").val();
  				if(type6==12521){
  					 type6=null;
			  }	
			  var type7=$("#type7").val();
			  if(type7==12521){
				  type7=null;  
				 }
			  layui.use('table', function(){
				  var table = layui.table;
				  table.reload('test', {
					  where: { //设定异步数据接口的额外参数，任意设
					    type3:type3,
					    type4:type4,
					    type5:type5,
					    type6:type6,
					    type7:type7
					  }
					  //,page: {
					   // curr: 1 //重新从第 1 页开始
					  //}
					});
			});	
		  }
		  //layer.alert(type1);
		
		
	}
  
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  //日期
  laydate.render({
    elem: '#type3'
  });
  laydate.render({
    elem: '#type4'
  });
});
$(function(){
	init();
})
function init(){
	layui.use('table', function(){
		  var table = layui.table;
		  table.render({
			  height: 20
		  });
	});	
}